<?php

session_start();

//$_SESSION['AgentID'] = $_POST['AgentID'];


	include("mysql_connect.php");
	
//	$_SESSION['PropertyId'] = $_POST['arg'];

//	$strKeyWord = $_SESSION['AgentID'];

	$strSqlCommand = 'SELECT Name, Address
					  FROM REOffice
					  WHERE idREOffice = '. $_SESSION['OfficeID'];

	$result = mysql_query($strSqlCommand);
	$rowDetail = @mysql_fetch_array($result);	

//	echo $strSqlCommand."<br/>";
//	$strAddress = $rowDetail[0]. ' '.$rowDetail[1] . ' ' . $rowDetail[2] . ' ' . $rowDetail[3];
//	$_SESSION["MapAddress"] = str_replace( " ","+", $strAddress);

	//<a data-role="button" data-direction="reverse" data-transition="slide" data-theme="a" href="#page13">View Broker</a>
	//<div class="ui-grid-a">
	echo '
		<div class="ui-block-a broker-image"><img src="images/broker.gif" id="BrokerImg"/></div>
		<div class="ui-block-b broker-info">
			<div>
				<p class="broker-name" id="BrokerName">'. $rowDetail['Name'].'</p>
				<p id="BrokerAddress">'. $rowDetail['Address'].'</p>
			</div>
		</div>
	';
//	</div>

//	<a data-role="button" data-transition="slide" href="#page11">About Me</a>
//	<a data-role="button" data-transition="slide" href="#page11">My Testimonials</a>
//	<a data-role="button" data-transition="slide" href="#page11">Email Me</a>
//	<a data-role="button" data-transition="slide" href="#page11">Add me to your Contacts</a>';


?>